﻿// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Debug.generated.h"

// 一些常用的可视化调试，例如画线，画框

UCLASS()
class XCZ3_API ADebug : public AActor
{
	GENERATED_BODY()

public:
	ADebug();
	virtual void BeginPlay() override;
	virtual void Tick(float DeltaTime) override;


	UFUNCTION(BlueprintCallable, DisplayName="调试_画球体")
	void DebugSphere(const FVector& Location, float Duration);

	UFUNCTION(BlueprintCallable, DisplayName="调试_画直线")
	void DebugLine(const FVector& StartLocation, const FVector& EndLocation);

	UFUNCTION(BlueprintCallable, DisplayName="调试_画立方体")
	void DebugBox(const FVector& Location, const FVector& Size);

	UFUNCTION(BlueprintCallable, DisplayName="调试_画点")
	void DebugPoint(const FVector& Location, float Size);
};
